<!-- 买入记录   -->
<template>
    <div class="buy_records">
      <van-nav-bar
        title="申请股份"
        left-arrow
        @click-left="$router.back()"
        left-text="返回"
      />
      <div class=''>
          <div></div>
      </div>
    </div>
</template>

<script>
  export default {
    name: 'buyRecords',
    data(){
      return {
        buyRecordsList:[],
        pageIndex: 1,
        pageSize: 20,
        totalRecord: 0,
        stockId: '',
      }
    },
    created() {
      const stockId = JSON.parse(localStorage.getItem('stockItem')).id
      if (stockId){
        this.stockId = stockId
      }
    },
    mounted() {
     
    },

    methods: {
      
      _getBuyRecordList(params){
        // this.$api.stock.reqBuyRecord(params).then(res =>{
        //   if(res.code===200){
        //     this.buyRecordsList = res.data.items
        //     this.totalRecord = res.data.total || res.data.count || 0
        //   }
        // })
      },

      handleChange(value) {
        const params = {
          id: this.stockId,
          pageIndex: value,
          pageSize: this.pageSize,
        };

        this._getBuyRecordList(params)
      },

    },
  }
</script>

<style scoped>

</style>
